<?php

use com\gdl\common\dataobject\common\ResultDO; 
use com\gdl\newagk\interfaces\DemoServiceIf;
use com\gdl\newagk\dataobject\demo\DemoInfoResultDTO; 

class api_DemoService extends api_Abstract implements DemoServiceIf{

    /**
     * demo
     */
    public function demo($demoid)
    { 
		$demoid = $demoid?$demoid:0;
        $condition = array();
		$result = new DemoInfoResultDTO();

		$adminuser = new model_newagk_adminuser();
		$where = 'isdelete = 0';
        $userlist = $adminuser->select($where)->items;
		$msg['data'] = json_encode($userlist);
		//var_dump($userlist);exit;
		$result->success = false;
		$result->code = 0; 
		$result->datas[] = $msg; 
		try{
			$result->success = true;
			return $result;
		} catch (Exception $e) {
			$result->success = false;
			$result->code = $e->getCode();
			$result->message = $e->getMessage(); 
		}
		return $result; 
    }
	 
 
}
